import axios from "axios";
import type {InternalAxiosRequestConfig,AxiosResponse
} from "axios"

const service=axios.create({
 baseURL:"http://121.89.205.189:3000/admin"
});
service.interceptors.request.use((config:InternalAxiosRequestConfig)=>{
    config.headers.token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbm5hbWUiOiJhZG1pbiIsImlhdCI6MTY3NzQyMDI0NSwiZXhwIjoxNjc3NDQ5MDQ1fQ.wTPLKyHHcpIE2Dl0q6WCNldcOH5MTQQRH-WLInUB_-M";
    return config;
})

service.interceptors.response.use((
    res:AxiosResponse)=>{
        return res
    }
    )
export default service